package com.niiwoo.civet.mobile.vo.response.invest;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * Created by lujing on 2018/5/12.
 */
@Data
@ApiModel("PC投资订单响应VO")
public class InvestOrderListResponseVO {

    @ApiModelProperty(value = "全部总数", required = true)
    private Integer allNum;

    @ApiModelProperty(value = "正常回款数", required = true)
    private Integer normalReceivingNum;

    @ApiModelProperty(value = "逾期数", required = true)
    private Integer overdueNum;

    @ApiModelProperty(value = "投资中数", required = true)
    private Integer collectingNum;

    @ApiModelProperty(value = "结清数", required = true)
    private Integer clearingNum;

    @ApiModelProperty(value = "关闭数", required = true)
    private Integer closeNum;

    @ApiModelProperty(value = "投资订单列表", required = true)
    private List<InvestOrderList> list;

    @Data
    @ApiModel("投资订单列表")
    public static class InvestOrderList {

        @ApiModelProperty(value = "订单ID", required = true)
        private Long orderId;

        @ApiModelProperty(value = "标的ID", required = true)
        private Long projectId;

        @ApiModelProperty(value = "投资本金", required = true)
        private BigDecimal contractAmount;

        @ApiModelProperty(value = "借款利率", required = true)
        private BigDecimal borrowRate;

        @ApiModelProperty(value = "借款期限", required = true)
        private Integer deadline;

        @ApiModelProperty(value = "借款期限单位-1月，2天", required = true)
        private Byte deadlineUnit;

        @ApiModelProperty(value = "投资日期", required = true)
        private Date investDate;

        @ApiModelProperty(value = "标的状态: 1.正常回款 2.逾期 3.投资中 4.已结清 5.已关闭", required = true)
        private Byte projectStatus;

        @ApiModelProperty(value = "查看合同", required = true)
        private String toViewContractUrl;

        @ApiModelProperty(value = "下载合同", required = true)
        private String downloadContractUrl;

    }

}
